package com.core.website.entity;

import cn.easyes.annotation.IndexField;
import cn.easyes.annotation.IndexId;
import lombok.Data;

import java.util.Date;

import static cn.easyes.common.enums.IdType.CUSTOMIZE;

@Data
public class Content {
    @IndexId(type = CUSTOMIZE)
    @IndexField(value = "id")
    private String id;
    @IndexField(value = "title")
    private String title;
    @IndexField(exist = false)
    private String subTitle;
    @IndexField(value = "content")
    private String content;
    @IndexField(value = "createTime")
    private Date createTime;
    @IndexField(exist = false)
    private String url;
    @IndexField(exist = false)
    private String thumbnailUrl;
    @IndexField(exist = false)
    private String no;
    @IndexField(exist = false)
    private String fileName;//文件名称
    @IndexField(exist = false)
    private String fileUrl;//文件下载的地址
    @IndexField(exist = false)
    private String type;//分类
    @IndexField(value = "columnId")
    private String columnId;//归属栏目
    @IndexField(exist = false)
    private String columnName;//归属栏目
    @IndexField(value = "author")
    private String author;//作者
    @IndexField(value = "postedBy")
    private String postedBy;//投稿人
    @IndexField(exist = false)
    private String signBy;//签发人
    @IndexField(exist = false)
    private String postedByName;//投稿人
    @IndexField(value = "organization")
    private String organization;//机构id
    @IndexField(exist = false)
    private String coreUnit;//单位
    @IndexField(exist = false)
    private Date beginTime;
    @IndexField(exist = false)
    private Date endTime;
    @IndexField(value = "approval")
    private String approval;
    @IndexField(value = "approvalTime")
    private Date approvalTime;
    @IndexField(exist = false)
    private String topContent;
    @IndexField(exist = false)
    private String newContent;
    @IndexField(exist = false)
    private String teamId;
    @IndexField(exist = false)
    private String niceContent;
    @IndexField(exist = false)
    private String approvalReason;
    @IndexField(exist = false)
    private String articleTitle;
    @IndexField(exist = false)
    private Date pubDate;
    @IndexField(exist = false)
    private Date contentSource;
    @IndexField(exist = false)
    private Integer pageNum;
    @IndexField(exist = false)
    private Integer pageSize;
    @IndexField(exist = false)
    private String createBy;
    @IndexField(exist = false)
    private int thumbs;//阅读量
    @IndexField(exist = false)
    private boolean contentThumbs;//是否点赞
    @IndexField(exist = false)
    private String organizationName;
    @IndexField(exist = false)
    private String param;
    @IndexField(exist = false)
    private String approvalUser;
    @IndexField(exist = false)
    private Integer sendNum;
    @IndexField(exist = false)
    private String articleType;
    /**
     * 适用于查询父目录的内容
     */
    @IndexField(exist = false)
    private String parentId;
    /**
     * 是否被转移审核 0-正常 1-转移审核
     */
    @IndexField(exist = false)
    private Integer isTransfer;
}
